package 集合框架.LinkedHashMap源码解析;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2022-02-16 10:39
 **/
public class TestLinkedHashMap {
    public static void main(String[] args) {
        Map<Integer, String> map = new LinkedHashMap<>();
        map.put(4, "4");
        map.put(6, "6");
        map.put(3, "3");
        map.put(null, null);
        map.put(7, "7");
        System.out.println(map.get(null));
        map.forEach((k, v) ->{
            System.out.println(k + ":" + v);
        });
    }
}
